package com.zbkj.common.model.splittingAccount;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 佣金流水表
 * </p>
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_commission_transaction")
@ApiModel(value = "EbCommissionTransaction对象", description = "佣金流水表")
public class EbCommissionTransaction implements Serializable {


    private static final long serialVersionUID = -7923187751061628792L;
    @ApiModelProperty(value = "流水ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "流水编号(唯一)")
    private String transactionNo;

    @ApiModelProperty(value = "商户账号id")
    private String accountId;

    @ApiModelProperty(value = "账号id")
    private String merchantName;

    @ApiModelProperty(value = "变动金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "变动前余额")
    private BigDecimal beforeBalance;

    @ApiModelProperty(value = "变动后余额")
    private BigDecimal afterBalance;

    @ApiModelProperty(value = "交易时间")
    private Date transactionTime;

    @ApiModelProperty(value = "关联订单号")
    private String relatedOrder;

    @ApiModelProperty(value = "订单类型")
    private String orderType;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}